package operator;

public class ForeachDemo {

    public static void main(String[] args) {
        int[] arr = {23, 14, 56, 9, 10, 7, 33, 47, 21, 20, 18, 17, 55, 63};

        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + " ");
        }

        //或者使用foreach循环
        for (int n : arr) {
            System.out.print(n + " ");
        }
    }
}
